package com.itheima.reggie.mapper;

/**
 * @Classname EmployeeMapper
 * @Description TODO
 * @Date 2023/3/1 14:22
 * @Created by 11404
 */


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.domain.Employee;
import org.apache.ibatis.annotations.Mapper;


import java.util.List;


@Mapper
public interface EmployeeMapper extends BaseMapper<Employee> {

    // 员工登录
    Employee findByUsername(String username);

    // 查询员工列表
    List<Employee> find(String name);

    //新增员工
    void insertEmp(Employee employee);

    //回显员工数据  --  根据ID查询员工数据
    Employee EmpById(Long id);

    //修改员工信息
    void udEmployee(Employee employee);
}